package driver

import (
	"context"
	"log"

	"cloudea.com/k8s-csi-fs/driver/proto"
)

type HelloServer struct {
	proto.UnimplementedHelloServiceServer
}

func (server *HelloServer) SayHello(ctx context.Context, in *proto.HelloRequest) (*proto.HelloReply, error) {
	log.Printf("Received: %s", in.GetName())
	return &proto.HelloReply{
		Message: "hello indentity： " + in.GetName(),
	}, nil
}
